/**
* @program: src
*
* @description:
*
* @author: Mr.chen
*
* @create: 2022-04-11 16:28
**/
package server
import (
	"context"
	"do_demo/srv/app/logic/rpc/internal/logic"
	"do_demo/srv/app/logic/rpc/internal/svc"
	pb "do_demo/srv/proto/logic"
)
type ILogicServer struct {
	svcCtx *svc.ServiceContext
}

func NewILogicServer(svcCtx *svc.ServiceContext) *ILogicServer {
	return &ILogicServer{
		svcCtx: svcCtx,
	}
}
//  测试案例
func (s *ILogicServer) TestSrv(ctx context.Context, in *pb.TestSrvReq) (*pb.TestSrvReply, error) {
	l := logic.NewTestSrvLogic(ctx, s.svcCtx)
	return l.TestSrv(in)
}